Accord Software, Inc.

tutorial12/main.c




/*
 * Accord Software, Inc.
 *
 * Tutorial 12
 *
 * Send nested structure and receive int
 */

#include "nstruct.h"

main(argc, argv)
	int argc;
	char *argv[];
{
	char *progname = argv[0];
	char *color = "Blue";
	struct volume v;

	v.height = 2;
	v.area.width = 3;
	v.area.length = 4;

	printf("%s volume = %d\n", 
		progname, get_volume(&v, color));

	exit(0);
}

[ Home | Tutorials | nstruct.c | nstruct.h ]
E-Mail:webmaster@accord.com
[P-033] Updated March 14, 1996
Copyright © 1993-1996 Accord Software, Inc. All rights reserved.